import $api from './sever'; 



//添加楼
export const addRoom =async (data)=>{
      let res =await $api.post ('/room/add',data) 
      return res.data;

}

//查询所有
export const getAllRoom =async (data)=>{

    let res =await $api.post ('/room/getAll',data) 
    return res.data;

}
// 删除楼栋

export const delRoom = async (data)=>{
    let res = await $api.post('/room/del',data)
    return res.data;
}

// 修改楼栋信息

export const editRoom = async (data)=>{
    let res = await $api.post('/room/edit',data)
    return res.data;
}
